package com.ys.service.eKnowAi.impl;

import com.ys.entity.eKnowAi.EKnowKnowledgeType;
import com.ys.mapper.eKnowAi.EKnowAiDiySqlMapper;
import com.ys.mapper.eKnowAi.EKnowKnowledgeTypeMapper;
import com.ys.service.eKnowAi.EKnowKnowledgeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("eKnowKnowledgeTypeService")
public class EKnowKnowledgeTypeServiceImpl implements EKnowKnowledgeTypeService {

	@Autowired
	private EKnowKnowledgeTypeMapper eKnowKnowledgeTypeMapper;

	@Autowired
	private EKnowAiDiySqlMapper eKnowAiDiySqlMapper;


	@Override
	public int addKnowledgeType(EKnowKnowledgeType eKnowKnowledgeType) {
		int result = eKnowKnowledgeTypeMapper.insert(eKnowKnowledgeType);
		return result;
	}


	@Override
	public int updateKnowledgeType(EKnowKnowledgeType eKnowKnowledgeType) {
		int result = eKnowKnowledgeTypeMapper.update(eKnowKnowledgeType);
		return result;
	}

	@Override
	public int deleteKnowledgeType(long id) {
		int result = eKnowAiDiySqlMapper.deleteKnowledgeType(id);
		return result;
	}


}
